#ifndef GLOBALOBJECT_H
#define GLOBALOBJECT_H
#include <QObject>
#include "station.h"
#include "jsonhelper.h"
#include "SqliteHelper.h"
#include "networklist.h"
#include "seriallist.h"
#include "hj212.h"
#include "stationmodel.h"
#include "codelist.h"
#include "timerthread.h"
#include "portlist.h"
#include "devicelist.h"
#include "indexguide.h"
#include "checkupdate.h"
#include "getdata.h"
#include "setdata.h"

using namespace Moolink;

extern Station stationHW;
extern StationModel station;
extern SqliteHelper* sqldate;
extern NetWorkList netbox;
extern HostList hostlist;
extern CodeList codelist;
extern SerialList serialbox;
extern TimerThread stimer;
extern PortList portlist;
extern DeviceList devicelist;
extern CheckUpdate checkupdate;

struct ServerStruct //自定义的数据类型
{
    QString serverName;
    QString serverIP;
    QString serverPort;
    int protocolTypeId;
};
Q_DECLARE_METATYPE(ServerStruct)  //注册，必不可少

class GlobalObject
{

public:
    GlobalObject();
    static void objectInit();

};

#endif // GLOBALOBJECT_H
